<!DOCTYPE html>
<html lang="en">
	<head>
		<include file="Index/head" />
	</head>

	<body>
		<include file="Index/header" />

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<include file="Index/menu" />
				
				<div class="main-content">
					<include file="Index/nav" />

					<div class="page-content">
						
							<!-- /**
							 * 右侧页面begin
							 */ -->
								<div class="row">
									<div class="col-xs-12">
										<div class="table-header">
											已完成项目
										</div>

										<div class="table-responsive">
											<div id="sample-table-2_wrapper" class="dataTables_wrapper" role="grid">
											<div class="row">
											<div class="col-sm-6">
											<div id="sample-table-2_length" class="dataTables_length">
											<!-- <label>Display 
											<select size="1" name="sample-table-2_length" aria-controls="sample-table-2">
											<option value="10" selected="selected">10</option><option value="25">25</option><option value="50">50</option>
											<option value="100">100</option>
											</select> records
											</label> -->
											</div>
											</div>
											<div class="col-sm-6" style="margin-bottom:-20px;">
											<div class="dataTables_filter" id="sample-table-2_filter">
											<label>搜索: <input type="text" aria-controls="sample-table-2">
<!-- 											<a href="{:U('Admin/Organ/add')}">
												<p style="margin-top:20px;"><button type="button" class="btn btn-white">添加机构</button></p>
											</a> -->
											</label>
											</div>
											</div>
											</div>
											<table id="sample-table-2" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
												<thead>
													<tr role="row"><th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">ID</th><th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">展示图</th><th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Price: activate to sort column ascending">项目名</th>
													<th class="" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Update: activate to sort column ascending" style="width:200px;"><i class="icon-address bigger-110 hidden-480"></i>套餐类型</th>
													<th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">检测机构</th>
													<th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">发起人</th>
													<th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">检测结果</th>
													<th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">排序</th>
													<th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">参与用户</th>
													<th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">项目评论</th>
													<th  role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">关注</th>
													<th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" aria-label=""></th></tr>
												</thead>
											<tbody role="alert" aria-live="polite" aria-relevant="all">
											<!-- 循环开始出 -->
											<volist name="list" id="vo">
											<tr class="odd">
												<td class=" ">{$vo.id}</td>
												<td class=" "><img src="{$vo.thumb}" style="width:50px;height:50px;"></td>
												<td class=" ">{$vo.pjname}</td>
												<td class=" ">{$vo.packageid}</td>
												<td class="hidden-480 ">{$vo.institutionid}</td>
												<td class=" ">{$vo.username}</td>
												<td class="hidden-480 ">
													<span class="label label-sm label-warning">{$vo.result}</span>
												</td>
												<td class=" ">{$vo.rank}</td>
												<td class=" "><a href="{:U('Admin/Funding/sponsor',array('id' => $vo['id']))}">查看</a></td>
												<td class=" ">
													<a href="{:U('Admin/Funding/comment_lists',array('id' => $vo['id']))}">
														<span class="label label-sm label-success">{$vo.comment_count}</span>
													</a>
												</td>
												<td class=" ">
													<a href="{:U('Admin/Funding/collection_lists',array('id' => $vo['id']))}">
														<span class="label label-sm label-success">{$vo.collection_count}</span>
													</a>
												</td>
												<td class=" ">
													<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
														<a class="blue" href="{:U('Admin/Funding/finish_lists_detail',array('id' => $vo['id']))}">
															<i class="icon-zoom-in bigger-130" title="详情"></i>
														</a>

														<!-- <a class="green" href="{:U('Admin/Funding/modify',array('id'=> $vo['id'],'page_state' => 3))}">
															<i class="icon-pencil bigger-130" title="修改" ></i>
														</a> -->

														<a class="red" href="javascript:del_organ({$vo.id})">
															<i class="icon-trash bigger-130" title="删除" ></i>
														</a>
													</div>

													<div class="visible-xs visible-sm hidden-md hidden-lg">
														<div class="inline position-relative">
															<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
																<i class="icon-caret-down icon-only bigger-120"></i>
															</button>

															<ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
																<li>
																	<a href="#" class="tooltip-info" data-rel="tooltip" data-original-title="View">
																		<span class="blue">
																			<i class="icon-zoom-in bigger-120"></i>
																		</span>
																	</a>
																</li>

																<li>
																	<a href="#" class="tooltip-success" data-rel="tooltip" title="" data-original-title="Edit">
																		<span class="green">
																			<i class="icon-edit bigger-120"></i>
																		</span>
																	</a>
																</li>

																<li>
																	<a href="#" class="tooltip-error" data-rel="tooltip" title="" data-original-title="Delete">
																		<span class="red">
																			<i class="icon-trash bigger-120"></i>
																		</span>
																	</a>
																</li>
															</ul>
														</div>
													</div>
												</td>
											</tr>
											</volist>
											<!-- 循环输出结束处 -->
											</tbody>
											</table>
													<div class="row">
														<div class="col-sm-6">
															<div class="dataTables_info" id="sample-table-2_info">Showing 1 to 10 of 23 entries</div>
														</div>
														<div class="col-sm-6">
															<div class="dataTables_paginate paging_bootstrap">
																<ul class="pagination">
																	{$page}
																</ul>
															</div>
														</div>
													</div>
										</div>
									</div>
								</div>

							<!-- /**
							 * 右侧页面end
							 */ -->
					</div><!-- /.page-content -->
				</div>

			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<include file="Index/footer" />
		<script type="text/javascript">
		function del_organ(id)
		{
			var r= confirm('确定删除该项目?');
			if(r)
			{
				var id = id;
				var url = "{:U('Admin/Funding/del')}";

				$.ajax({
					type: 'post',
					url: url,
					data: {id:id},
					dataType: 'json',
					success: function(data){

						if(data==1){
							window.location.href="{:U('Admin/Funding/finish_lists')}";
						}
					}
				});
			}
			else
			{
				return false;
			}
		}
		</script>
	</body>
</html>
